//
//  ITRefreshAutoNormalFooter.m
//  InTubePro
//
//  Created by seven on 2020/2/3.
//  Copyright © 2020 seven. All rights reserved.
//

#import "ITRefreshAutoNormalFooter.h"
#import "ITMJRefreshHeadGifImagesTool.h"

@implementation ITRefreshAutoNormalFooter

- (instancetype)init{
    self = [super init];
    if (self) {
        self.triggerAutomaticallyRefreshPercent = -5;
        self.stateLabel.textColor = ColorWithHexAplha(0xffffff, 0.5);
        self.loadingView.color = self.stateLabel.textColor;
        //self.autoTriggerTimes = -1;
//        [self.lastUpdatedTimeLabel setHidden:YES];
//        [self.stateLabel setHidden:YES];
//        [self setImages:[ITMJRefreshHeadGifImagesTool imagesWithMJRefreshStateIdle] forState:MJRefreshStateIdle];
//        [self setImages:[ITMJRefreshHeadGifImagesTool imagesWithMJRefreshStatePulling] forState:MJRefreshStatePulling];
//        [self setImages:[ITMJRefreshHeadGifImagesTool imagesWithMJRefreshStateRefreshing] forState:MJRefreshStateRefreshing];
        [ITMJRefreshHeadGifImagesTool footerTitleWithMJRefreshStates:self];
        self.alpha = 0;
    }
    return self;
}


@end
